home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
C
/
Applications
/
Transcript 1.0b1
/
Hello World ƒ
/
BuildHelloWorld
next >
Wrap
Text File
|
1996-06-15
|
978b
|
25 lines
# Build the fat Hello World! application.
# Copyright © 1996 Christopher E. Hyde. All rights reserved.
Set App "::Hello World!"
Set Src "" #":Hello World ƒ:"
Set Obj "::Obj ƒ:"
Set DbgFolder "::"
Set COptions "-i ∂"{DbgFolder}∂""
# Build for PowerPC
MrC {COptions} "{Src}HelloWorld.c" -o "{Obj}HelloWorld.c.x"
MrC {COptions} "{DbgFolder}DbgPrintF.c" -o "{Obj}DbgPrintF.c.x"
PPCLink -d -o "{App}" -t 'APPL' "{Obj}HelloWorld.c.x" "{Obj}DbgPrintF.c.x" ∂
"{SharedLibraries}InterfaceLib" "{SharedLibraries}StdCLib" ∂
"{SharedLibraries}MathLib" "{PPCLibraries}StdCRuntime.o"
#Rez "{Src}HelloWorld.r" -o "{App}" -append
# Build for 68K
SC {COptions} "{Src}HelloWorld.c" -o "{Obj}HelloWorld.c.o"
SC {COptions} "{DbgFolder}DbgPrintF.c" -o "{Obj}DbgPrintF.c.o"
Link -d -o "{App}" -t 'APPL' "{Obj}HelloWorld.c.o" "{Obj}DbgPrintF.c.o" ∂
"{Libraries}IntEnv.o" "{Libraries}MacRuntime.o" ∂
"{Libraries}Interface.o" "{CLibraries}StdCLib.o"
Rez "{Src}HelloWorld.r" -o "{App}" -append